package cn.dapeng.util;

import java.util.concurrent.TimeUnit;

/**
 * @BelongProject study
 * @BelongPackage cn.dapeng.util
 * @Description TODO
 * @ClassName SleepingUtil
 * @Author xupenghong
 * @Date 2024/8/19 16:47
 * @Version 1.0.0
 */
public class SleepingUtil {

    public static void sleep(long seconds, TimeUnit timeUnit) {

        try {
            timeUnit.sleep(seconds);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

    }
}
